import request from '@/utils/request.js'

// 获取员工列表
export function sysUser(params) {
  return request({
    url: '/sys/user',
    params
  })
}

// 新增员工
export function sysUserPost(data) {
  console.log(data)
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}

// 删除员工
export function sysUserDel(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'delete'
  })
}
